package com.sen.ssp.test;

import java.util.ArrayList;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.sen.ssp.cache.SingleObjManager;
import com.sen.ssp.exception.SspException;

/**
 * 客户对象管理类，测试缓存框架用的类
 * @author sen
 */
public class ClientObjManager extends SingleObjManager {

	private static Logger LOG = LoggerFactory.getLogger(ClientObjManager.class);
	
	@SuppressWarnings("unchecked")
	public Object loadVObj(String id) throws SspException {
		
		LOG.debug("ClientObjManager loadVObj....");
		
		ArrayList list= new ArrayList();
		for (int i=1; i<=20; i++) {
			list.add(id + " client-" + i);
		}
		
		LOG.debug("ClientObjManager loadVObj the end....");
		
		return list;
	}

	public String storeVObj(Object obj) throws SspException {
		return null;
	}
}
